Recursion
Definintion
when a function calls itself from its body, the function is said to be a recursive function.
note
Recursive functions should always have a termination condition else the function calls itself infinitely.
#include <stdio.h>
void recurse()
{
// Body that will contain the termination condition
recurse();
}
int main()
{
recurse();
return 0;
}
Find Recursion programs here:
https://github.com/TejasBhovad/c-programs/recursion